<%--
  Created by IntelliJ IDEA.
  User: YanHilin
  Date: 2020/5/3
  Time: 16:58
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<base href="http://localhost:8080/onlineflower/">
<script>
    $(function () {
        //给验证码绑定单击事件
        $("#code_img").click(function () {
            //alert("hello")
            //在事件响应发function函数中有一个this对象，这个this对象是当前正在响应的DOM对象
            this.src="${basePath}/KaptchaServlet.jpg?d="+new Date();
        })
    })
</script>
